import Vue from 'vue';
import Vuex from 'vuex';
import api from 'api/api'

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    categoryList: [],
    address: [],
    orderInfor: {}
  },
  mutations: {
    UPDATA_CATEGORY (state, msg) {
		console.log(msg)
      state.categoryList = msg
    },
    UPDATA_ADDRESS (state, msg) {
      state.address = msg
    },
    UPDATA_ORDERINFOR (state, msg) {
      state.orderInfor = msg
    },

  },
  actions: {

  }
})
